home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / WLIB.ZIP / EXAMPLE2.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-26  |  405 b   |  16 lines

  1. #include <conio.h>
  2. #include <Wstr.h>
  3. #include <WFile.h>
  4.  
  5. // compute and return the amount of free disk space
  6. // put commas in the number so that it's easy to see how many megs there are
  7.  
  8. int main(int argc, char* argv[])
  9.   {
  10.     long Space;
  11.     if (argc>1) Space=DiskSpace(argv[1][0]);
  12.     else Space=DiskSpace();
  13.     cputs(Form("#,###,###,###",Space*1024)+" bytes free");
  14.     return 0;
  15.   }
  16.